package com.example.springbott.mapper;

import com.example.springbott.bean.MarketAddress;
import com.example.springbott.bean.MarketAddressExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketAddressMapper {
    long countByExample(MarketAddressExample example);

    int deleteByExample(MarketAddressExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAddress record);

    int insertSelective(MarketAddress record);

    List<MarketAddress> selectByExample(MarketAddressExample example);

    MarketAddress selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketAddress record, @Param("example") MarketAddressExample example);

    int updateByExample(@Param("record") MarketAddress record, @Param("example") MarketAddressExample example);

    int updateByPrimaryKeySelective(MarketAddress record);

    int updateByPrimaryKey(MarketAddress record);

    void updateIsDefaultByTrue();

    Integer selectReturnId(@Param("user_id") Integer userId , @Param("name") String name , @Param("tel") String tel);

}